import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/exam/type/info/' + query,
    method: 'get'
  })
}

export function fetchTree() {
  return request({
    url: '/exam/type/tree/',
    method: 'get'
  })
}

export function fetchDel(param) {
  return request({
    url: '/exam/type/delete/?ids=' + param,
    method: 'delete'
  })
}

export function fetchAdd(params) {
  return request({
    url: '/exam/type/insert/',
    method: 'post',
    data: params
  })
}
